Fix recursive lock p2m lock acquisition in POD code
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 1 Oct 2009 11:29:33 +0000 (12:29 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 1 Oct 2009 11:29:33 +0000 (12:29 +0100)
commit3ec6777498773932c6383c2bfc7b05523f6ca45f
tree93f7c3c069ac4f9d030707cf588353bc3880d620
parent643898034e176f5883ab70203ed01670d809c3b7
Fix recursive lock p2m lock acquisition in POD code

The POD code can take the p2m lock from inside a lookup.  This causes
a crash if anyone calls gfn_to_mfn* with the p2m lock held, which is
quite a few places.  Make the POD code understand that it may be
called with the lock held, and DTRT about talking or releasing it.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/mm/p2m.c